﻿using System;

namespace Main
{
    class Stat
    {
        private float currentValue = 0;
        private float maxValue = 0;

        public string Name
        {
            get { return Name; }
            set { Name = value; }
        }

        public float Value
        {
            get { return currentValue; }
            set { currentValue = Math.Min(value, maxValue); }
        }

        public float ValueMax
        {
            get { return maxValue; }
            set { maxValue = value; }
        }

        public float ValuePercent
        {
            get { return currentValue / maxValue; }
        }

        public void modValue(float change) { currentValue = Math.Min(currentValue + change, maxValue); }

    }
}
